package com.example.news.pojo.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(defaultValue = "修改用户信息对象")
public class ChangeUserInfoForm {
    @Schema(description="用户名不可改")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description="昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @Schema(description="性别")
    @NotBlank(message = "性别不能为空")
    private Integer sex;

    @Schema(description="签名")
    private String sign;

    @Schema(description="用户头像")
    private String avatar;

}
